class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        len_nums = len(nums)
        for i in range(len_nums):
            j = i + 1
            part = target - nums[i]
            while j < len_nums:
                if part == nums[j]:
                    return (i, j)
                j += 1

        return None, None
